package basic;

public class ArrayGetMinDemo {
    public static void main(String[] args) {
        int[] arr = {20,30,15,70,92,11};
        int min = arr[0];
        //  for(变量声明: 数组或列表)
        for (int n: arr){
            if (n < min){
                min = n;
            }
        }
        System.out.println("最小值为:" + min);
    }
}
